//
//  Common.swift
//  CZWeibo31
//
//  Created by apple on 16/8/9.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit
//通知名字
let WBNOTIFICATIONCENTERNAME = "WBNOTIFICATIONCENTERNAME"

//微博相关信息
let WBAppKey = "1872789194"
let WBAppSecret = "31ed173852991a51c3461dc90010b977"
let WBRedirect_uri = "http://www.baidu.com"
let WBName = "agaoyin@163.com"
let WBPassWd = "gaoyin19920225"
// 主题颜色
let AppThemeColor = UIColor.orangeColor()
// RGB颜色
func RGB(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat = 1)-> UIColor{
    return UIColor(red: red/255, green: green/255, blue: blue/255, alpha: alpha)
}
// 随机颜色
func RandomColor()-> UIColor{
    let r = CGFloat(random()%256)
    let g = CGFloat(random()%256)
    let b = CGFloat(random()%256)
    return RGB(r, green: g, blue: b)
}

let SCREENW = UIScreen.mainScreen().bounds.width
let SCREENH = UIScreen.mainScreen().bounds.height
